Debugging Segmentation Faults. If a program gets a segmentation fault ( SIGSEGV ), it references a memory address outside of the memory available to it.
The code calls a subroutine that has a function(?) which get 'rec' from the user input, but that subroutine is pretty long so I just shortened to show error.
The problem comes from the size of the stack used by some compilers by default ( ifort ) or by some others when they optimise the compilation ( gfortran -Ofast ...
The most common cause of this error is an array index being outside the declared range. This could occur from a miscalculation of an array index or the ...